package com.weimob.mcloud.wechatwork.customer.export.msg;

import com.weimob.mcloud.wechatwork.customer.service.LoseMessageService;
import com.weimob.mcloud.wechatwork.customer.service.user.base.PageResponse;
import com.weimob.mcloud.wechatwork.customer.service.user.module.dto.msg.LoseMessageBO;
import com.weimob.mcloud.wechatwork.customer.service.user.module.dto.msg.LoseMessageQueryDTO;
import com.weimob.mcloud.wechatwork.customer.service.user.service.msg.LoseNoticeMessageClient;
import com.weimob.soa.common.response.SoaResponse;
import com.weimob.soa.common.utils.SoaUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author junlong.lv
 * @version 1.0
 * @date 2021/12/1 11:14 下午
 */
@Slf4j
@Service
public class LoseNoticeMessageClientImpl implements LoseNoticeMessageClient {

    @Autowired
    private LoseMessageService loseMessageService;

    @Override
    public SoaResponse<PageResponse<LoseMessageBO>, ?> queryLoseMessage(LoseMessageQueryDTO loseMessageQueryDTO) {
        return SoaUtil.ok(loseMessageService.queryLoseMessage(loseMessageQueryDTO));
    }
}
